package com.axxc.cloud.controller.axxc;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;


@RestController
@Api(description = "测试接口文档")
public class SwaggerController {

	@RequestMapping(value = "/add", method = RequestMethod.POST)
	@ApiOperation(value = "添加用户", notes = "增加用户")
	public void add(
			@ApiParam(name = "token", value = "token", required = true) @RequestParam(value = "token", required = true) String token,
			@ApiParam(name = "userName", value = "用户昵称", required = true) @RequestParam(value = "userName", required = true) String userName,
			@ApiParam(name = "mobile", value = "手机", required = true) @RequestParam(value = "mobile", required = true) String mobile,
			@ApiParam(required = true, name = "email", value = "邮箱") @RequestParam(value = "email", required = true) String email) {

		System.out.println(userName);
	}

}
